$:.unshift File.join(File.dirname(__FILE__),'../..','src')

class Grid

	def initialize
		@grid = Array.new(10)
		@grid.map! { Array.new(10) }
	end
	
	def place_ship(ship, x1, y1)
		
		x2 = ship.width + x - 1
		y2 = ship.height + y - 1
		
		raise "Ship is out of the grid" if (x1 < 0 || y1 < 0 || x2 > 9 || y2 > 9)
		
		case ship.orientation
			when "h"
				#TODO: Place a horozontal ship
			when "v"
				#TODO: Place a vertical ship
		end
		
	end
	
end